package basic;

import java.math.BigDecimal;
import java.util.Arrays;

public class T1 {
	public static final A a=new A();
	public static void main(String[] args) {
		T1 t1=new T1();
		t1.a.setI(1);
		t1.a.setI(2);
		System.out.println(t1.a.getI());
		t1();
		System.out.println(t2());
		t3();
	}
	public static void t1(){
		System.out.println(T1.a.getI());
	}
	public static int t2(){
		try {
			return 1;
		} catch (Exception e) {
			// TODO: handle exception
		}finally{
			//返回这个值
			return 3;
		}
	}
	public static void t3(){
		//扩展数组大小
		int[] is=new int[10];
		System.out.println("t3");
		System.out.println(is.length);
		is=Arrays.copyOf(is, 20);
		System.out.println(is.length);
	}

}
class A{
	private String name;
	private Integer i;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getI() {
		return i;
	}
	public void setI(Integer i) {
		this.i = i;
	}
}
